using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using System.Xml.Serialization;
using System.IO;

namespace Core
{
    [XmlRoot("helpContext")]
    public class HelpContext : HelpItem, ISavable
    {
        private string _name = string.Empty;

        public string name
        {
            get { return _name; }
            set { _name = value; }
        }

        private string _createdDate = string.Empty;

        public string createdDate
        {
            get { return DateTime.Now.ToString(Utils.DEFAULT_DATETIME_FORMAT_STRNG); }
            set { _createdDate = value; }
        }
        private string _changedDate = string.Empty;

        public string changedDate
        {
            get { return DateTime.Now.ToString(Utils.DEFAULT_DATETIME_FORMAT_STRNG); }
            set { _changedDate = value; }
        }
        private string _author = string.Empty;

        public string author
        {
            get { return _author; }
            set { _author = value; }
        }
        private string _version = string.Empty;

        public string version
        {
            get { return _version; }
            set { _version = value; }
        }

        public void SaveToDisk()
        {
            if (HCProjectManager.CurrentProject != null)
            {
                SaveManifestEntry();
            }
        }
    }
}
